import java.util.ArrayList;

/**
 * describe:
 *
 * @author helloworldyu
 * @data 2018/1/3
 */
public class EventHandler {
	//所有的带通知的 server.core.server.core.Event
	private ArrayList<Event> eventList = new ArrayList<>();

	public void addEvent( Event event ){
		eventList.add(event);
	}

	public void notifyX() throws Exception {
		for ( Event event : eventList ){
			event.invoke();
		}
	}
}